using System;
using System.Collections.Generic;
using System.Text;
using Irony.Parsing;

namespace LuaLanguage
{
    public class Resolver : IASTResolver
    {
        #region IASTResolver Members


        public IList<Declaration> FindCompletions(object result, int line, int col)
        {
            // Used for intellisense.
            List<Declaration> declarations = new List<Declaration>();

            // Add keywords defined by grammar
            //foreach (string keyword in Configuration.Grammar.Keywords)
            //{
            //    declarations.Add(new Declaration("", keyword, 206, keyword));
            //}

            //declarations.Sort();
            return declarations;
        }

        public IList<Declaration> FindMembers(object result, int line, int col)
        {
            List<Declaration> members = new List<Declaration>();
            return members;
        }

        public string FindQuickInfo(object result, int line, int col)
        {
            return "unknown";
        }

        public IList<Method> FindMethods(object result, int line, int col, string name)
        {
            return new List<Method>();
        }

        #endregion
    }
}
